home *** CD-ROM | disk | FTP | other *** search
/ Stolen Data 3 / Stolen Data 3.adf / MAG-TEXT / CODE5a < prev    next >
Text File  |  1989-01-01  |  626b  |  31 lines

  1.   Move   Scrollpt(a5),d0
  2.   Add    Speed(a5),d0
  3.   Cmp    #256,d0
  4.   Blt.s  Noreset
  5.  
  6.   Sub    #256,d0        ;reset counter
  7.   Move.l Display(a5),d7 ;swap buffers
  8.   Move.l Update(a5),Display(a5)
  9.   Move.l d7,Update(a5)
  10.  
  11. Noreset
  12.   Move   d0,d1
  13.   Move   d0,Scrollpt(a5)
  14.   Lsr    #4,d0
  15.   Add    d0,d0
  16.   Move.l Display(a5),a0
  17.   Lea    (a0,d0),a0
  18.   Move.l a0,d0
  19.   Move   d0,Planelow
  20.   Swap   d0
  21.   Move   d0,Planehigh
  22. etc...
  23.   Not    d1
  24.   And    #$0f,d1
  25.   Move   d1,Scrollreg
  26.  
  27.     Now   we  need  to  actually  start
  28. updating the buffers themselves.  There
  29. are two separate stages to creating the
  30. new  buffer: first copy the latter area
  31.